from django.urls import re_path, path
from .views import *

urlpatterns = [
    re_path(r'^city/hotlist/$', HostCityAPIView.as_view()),
    re_path(r'^recruits/search/recommend/$', RecommendAPIView.as_view()),
    re_path(r'^recruits/search/latest/$', LatestAPIView.as_view()),
    re_path(r'^enterprise/search/hotlist/$', EnterpriseAPIView.as_view()),
    re_path(r'^recruits/search/city/keyword/$', SearchAPIView.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/$', JobDetailsAPIView.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/$', EnterpriseDetailsAPIView.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/visit/$', JobVisitAPIView.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/visit/$', EnterpriseVisitAPIView.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/collect/$', CollectRecruitsAPIView.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/cancelcollect/$', CancelCollectRecruitsAPIView.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/collect/$', CollectEnterpriseAPIView.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/cancelcollect/$', CancelCollectEnterpriseAPIView.as_view()),

]
